//
//  MYUserTool.h
//  奇闻
//
//  Created by 陈志铭 on 14-11-26.
//  Copyright (c) 2014年 MingYueGuCheng. All rights reserved.
//

#import <Foundation/Foundation.h>
@class MYUser,MYUnReadResult;

@interface MYUserTool : NSObject
// block参数设计原理:需要把谁传出去,就填谁
//用户 读取接口	users/show
/**
 *  获取用户信息
 *
 *  @param success 成功的回调
 *  @param failure 失败的回调
 */
+ (void)userInfoDidSuccess:(void (^)(MYUser *user))success failure:(void (^)(NSError *error))failure;

//提醒 读取接口	remind/unread_count
/**
 *  获取用户未读数
 *
 *  @param success 成功的回调
 *  @param failure 失败的回调
 */
+ (void)unReadCountDidSuccess:(void (^)(MYUnReadResult *unReadResult))success failure:(void (^)(NSError *error))failure;
@end
